<?php
  /**
  * 域名检测，中转页
  */
  class check extends control{
  	  public function _GET(){
         $urls = ['tt.t.vipds.cn'];
         foreach ($urls as $key => $value) {
         	$url = 'http://check.api-export.com/api/checkdomain?key=235e48db60605d00dc64df889dca69e1&url='.$value;
         	$rt = curl_do($url);
         	$re = json_decode($rt[1]);
         	if ($re->code == 0) {
         		// var_dump($re->code);exit;
         		$url2 = 'http://'.$value.'/videoshow/test';
         		break;
         	}
         }
         if (isset($url2)) {
         	header("location:$url2");
         }
  	  }  	
  }